



//
//  NEditDeleteView.m
//  nncloud
//
//  Created by macfai on 2018/12/26.
//  Copyright © 2018 macfai. All rights reserved.
//

#import "NEditDeleteView.h"

@implementation NEditDeleteView

- (void)awakeFromNib{
    
    [super awakeFromNib];
    self.editBtn.layer.cornerRadius = 5.f;
    self.editBtn.layer.masksToBounds = YES;
    
    self.deleteBtn.layer.cornerRadius = 5.f;
    self.deleteBtn.layer.masksToBounds = YES;
    
}

///block  传值传递点击事件  block 不仅可以传值而且可以传递点击事件，基本可以代替delegate使用了
- (IBAction)editAction:(UIButton *)sender {
    if (self.editAction) {
        self.editAction(sender);
    }
}

- (IBAction)deleteActin:(UIButton *)sender {
    if (self.deleteAction) {
        self.deleteAction(sender);
    }
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
